<?php
define('ENVIRONMENT', 'development');
define('ROOT_PATH', __DIR__);
define('LIB_PATH', __DIR__ . '/Lib');
define('APP_PATH', __DIR__ . '/App');
define('SERVICE_PATH', __DIR__ . '/Service');
define('VENDOR_PATH', __DIR__ . '/vendor');
define('SELF', pathinfo(__FILE__, PATHINFO_BASENAME));

define('DS', DIRECTORY_SEPARATOR);
define('Static_PATH', DS . 'static');

if (defined('ENVIRONMENT')) {
    switch (ENVIRONMENT) {
        case 'development':
            error_reporting(E_ALL);
            break;

        case 'testing':
        case 'production':
            error_reporting(0);
            break;

        default:
            exit('The application environment is not set correctly.');
    }
}
//composer
require_once VENDOR_PATH . '/autoload.php';

require_once LIB_PATH . '/Base.class.php';

session_start();

\Lib\Base::run();